package fun.yyds.controller.sys;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "4.WX")
@RequestMapping("/")
public class WXController {
    @GetMapping("wx")
    @Operation(summary = "微信")
    public String GetVersion(@RequestParam(value = "signature", required = false) String signature,
                             @RequestParam(value = "timestamp", required = false) Long timestamp,
                             @RequestParam(value = "nonce", required = false) Integer nonce,
                             @RequestParam(value = "echostr", required = false) String echostr) {
        System.out.println(signature);
        System.out.println(timestamp);
        System.out.println(nonce);
        System.out.println(echostr);
        return echostr;
    }


}
